CMAKE_MINIMUM_REQUIRED(VERSION 3.0)

include_directories(${COMN_DIR}/include)

if((MSVC) AND (MSVC_VERSION LESS 1700))
	include_directories(${THIRD_PARTY}/stdint)
endif()

link_directories(${COMN_DIR}/lib)
link_directories(${PROJECT_ROOT}/lib)

include_directories(${FFMPEG_DIR}/include)
link_directories(${FFMPEG_LIBRARY_DIR})

include_directories(include)
include_directories(src)
include_directories(.)

include_directories(${PROJECT_ROOT}/UniMediaCore/include)
include_directories(${THIRD_PARTY}/libflv/include)

include_directories(${THIRD_PARTY}/libmov/include)

aux_source_directory(. SOURCES)
aux_source_directory(src SOURCES)

add_library(UniMediaMuxer SHARED ${SOURCES})


target_link_libraries(UniMediaMuxer
	debug libflvd optimized libflv
	debug libmovd optimized libmov
	debug comnd optimized comn
	UniMediaCore
	${FFMPEG_LIBRARIES}
	${LIB_PLATFORM}
	)

set_target_properties(UniMediaMuxer PROPERTIES LINK_INTERFACE_LIBRARIES "")
set_target_properties(UniMediaMuxer PROPERTIES INTERFACE_LINK_LIBRARIES "")

install(TARGETS UniMediaMuxer DESTINATION lib)